/*
 *
 *  * Copyright (c) 2016. For Intelligent Group.
 *
 */

package com.intelligent.ispc.client.event;

/**
 * Created by Peter on 2016/9/6.
 */
public class ExecutorTaskFinishEvent {

    private String key;
    private Object result;

    /**
     * Event subscribe method for catch exceptions.
     *
     * @param key    String model key
     * @param result Object task result content
     */
    public ExecutorTaskFinishEvent(String key, Object result) {
        this.key = key;
        this.result = result;
    }

    public Object getResult() {
        return result;
    }

    public void setResult(Object result) {
        this.result = result;
    }

    public String getKey() {
        return key;
    }

    public void setKey(String key) {
        this.key = key;
    }
}
